import request from '@/utils/request'

// 登录
export const loginApi = (data) => request.post('/sys/login', data)

// 个人信息
export const getUserInfoApi = () => request.get('/sys/profile')

export const updatePasswordApi = (data) => request({
  url: '/sys/user/updatePass',
  method: 'put',
  data
})
export const getUserDetailById = (id) => request.get(`/sys/user/${id}`)
